package cn.itcast.nems.order.enumeration;

import cn.itcast.ic.common.exception.v2.bean.BizErrorBody;
import cn.itcast.ic.common.exception.v2.bean.BizStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 订单异常提示模版
 * </p>
 *
 * @author zhouwei
 * @since 2023/10/10 9:02 AM
 **/
@Getter
@AllArgsConstructor
public enum OrderErrorBodyEnum implements BizErrorBody {
    /** OrderService */
    ORDER_LINE_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "订单行不能为空！"),
    ORDER_ID_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "订单ID不能为空！"),
    /** customer */
    ORDER_CUSTOMER_RELATIONSHIP_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户信息不能为空！"),
    ORDER_CUSTOMER_ID_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户ID不能为空！"),
    ORDER_CUSTOMER_NAME_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户姓名不能为空！"),
    ORDER_CUSTOMER_MOBILE_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户手机号不能为空！"),
    ORDER_CUSTOMER_GENDER_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户性别不能为空！"),
    ORDER_CUSTOMER_COUNSELOR_ID_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户咨询师ID不能为空！"),
    ORDER_CUSTOMER_COUNSELOR_NAME_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户咨询师ID不能为空！"),
    ORDER_CUSTOMER_COUNSELOR_TEAM_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户师咨询师所属团队不能为空！"),
    ORDER_CUSTOMER_COUNSELOR_EMAIL_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "客户咨询师工作邮箱不能为空！"),

    ORDER_BIZ_NO_CONFLICT(BizStatusEnum.BAD_REQUEST, "业务订单号[%s]已存在订单！请确认业务订单号是否正确或订单是否已添加！"),

    ORDER_TRANSFER_NO_ALLOWED(BizStatusEnum.BAD_REQUEST, "转班订单禁止取消！"),
    /** status:400 */
    ORDER_DISCOUNT_RULE_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "找不到对应的优惠！优惠：[%s]-[%s]！"),
    ORDER_JOURNAL_DISCOUNT_RULE_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "找不到对应的优惠单！优惠行ID：[%s]！"),
    ORDER_DISCOUNT_RULE_UNAVAILABLE(BizStatusEnum.BAD_REQUEST, "该优惠不可用！优惠：[%s]-[%s]！"),

    /** OrderExtendService */
    ORDER_EXTEND_INSERT_ERROR(BizStatusEnum.INTERNAL_SERVER_ERROR, "拓展字段添加失败！"),
    /** 支付流水*/
    ORDER_JOURNAL_NOT_FOUND(BizStatusEnum.INTERNAL_SERVER_ERROR, "支付流水费用相关信息不能为空！"),
    ORDER_JOURNAL_DATA_NOT_FOUND(BizStatusEnum.INTERNAL_SERVER_ERROR, "找不到支付流水。凭单类型：%s, 凭单号：%s！");

    public BizStatusEnum status;
    public String message;
}
